module.exports = {
    render: function () {
        var CKEditor = new icu.formElement.CKeditor();

        // 渲染，开启CKEditor
        this.$el.find('#CKeditor').append(CKEditor.html);

        // 由于 CKEditor 属于异步渲染组件，需要在创建变量后手动启动渲染方法
        CKEditor.render();


        this.$el.find('#get').click(() => {
            CKEditor.get(function (emsg, value) {
                icu.alert.normal({
                    text: value
                });
            });
        });



        this.$el.find('#set').click(() => {
            CKEditor.set('<p><strong>asdasd</strong></p>');
        });


    },
};